﻿package kliment.events {
	import flash.events.Event;
	
	/**
	 * ...
	 * @author	Kliment
	 * @version	1.0.2
	 * 
	 * class name: kliment.events.MouseGestureEvent
	 */
	public class MouseGestureEvent extends Event {
		static public const SLIDE_RIGHT:String = 'slide_right';
		static public const SLIDE_LEFT:String = 'slide_left';
		static public const SLIDE_DOWN:String = 'slide_down';
		static public const SLIDE_UP:String = 'slide_up';
		static public const DRAG:String = 'drag';
		static public const START:String = 'start';
		static public const FINISH:String = 'finish';
		
		private var _lenght:Number;
		
		public var dX:Number = 0;
		public var dY:Number = 0;
		
		public function MouseGestureEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false, lenght:Number = 0) { 
			super(type, bubbles, cancelable);
			_lenght = lenght;
		} 
		
		public override function clone():Event { 
			return new MouseGestureEvent(type, bubbles, cancelable, _lenght);
		} 
		
		public override function toString():String { 
			return formatToString("MouseGestureEvent", "type", "bubbles", "cancelable", "eventPhase", "lenght"); 
		}
		
		public function get lenght():Number { return _lenght; }
		
	}
	
}